.class public Lcom/estrongs/android/pop/app/AudioPlayerService;
.super Lcom/estrongs/android/pop/esclasses/m;
.source "AudioPlayerService.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/AudioPlayerService$MediaButtonReceiver;,
        Lcom/estrongs/android/pop/app/AudioPlayerService$g;
    }
.end annotation


# instance fields
.field private a:Ljava/lang/Object;

.field private final b:Landroid/os/IBinder;

.field private c:Z

.field private d:Z

.field private e:Lcom/estrongs/android/ui/notification/a;

.field private f:Landroid/media/MediaPlayer;

.field private g:Z

.field private h:Les/uo;

.field private final i:Landroid/content/BroadcastReceiver;

.field j:Landroid/media/MediaPlayer$OnCompletionListener;

.field k:Landroid/media/MediaPlayer$OnErrorListener;

.field private final l:Landroid/content/BroadcastReceiver;

.field private final m:Landroid/content/BroadcastReceiver;

.field n:Lcom/estrongs/android/pop/app/y;

.field public o:Z

.field p:Z

.field private q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/m;-><init>()V

    .line 2
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->a:Ljava/lang/Object;

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/app/AudioPlayerService$g;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$g;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->b:Landroid/os/IBinder;

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    .line 5
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->d:Z

    const/4 v1, 0x0

    .line 6
    iput-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    .line 7
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->g:Z

    .line 8
    new-instance v2, Lcom/estrongs/android/pop/app/AudioPlayerService$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$a;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->i:Landroid/content/BroadcastReceiver;

    .line 9
    new-instance v2, Lcom/estrongs/android/pop/app/AudioPlayerService$c;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$c;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->j:Landroid/media/MediaPlayer$OnCompletionListener;

    .line 10
    new-instance v2, Lcom/estrongs/android/pop/app/AudioPlayerService$d;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$d;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->k:Landroid/media/MediaPlayer$OnErrorListener;

    .line 11
    new-instance v2, Lcom/estrongs/android/pop/app/AudioPlayerService$e;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$e;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->l:Landroid/content/BroadcastReceiver;

    .line 12
    new-instance v2, Lcom/estrongs/android/pop/app/AudioPlayerService$f;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$f;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->m:Landroid/content/BroadcastReceiver;

    .line 13
    iput-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->n:Lcom/estrongs/android/pop/app/y;

    .line 14
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 15
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->p:Z

    .line 16
    iput-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    return-void
.end method

.method private H()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->n:Lcom/estrongs/android/pop/app/y;

    if-eqz v0, :cond_1

    iget-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->p:Z

    if-nez v1, :cond_0

    goto :goto_0

    :cond_0
    if-eqz v1, :cond_1

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/y;->a()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->p:Z

    :cond_1
    :goto_0
    return-void
.end method

.method private I()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->c()I

    move-result v0

    return v0
.end method

.method private J()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->n:Lcom/estrongs/android/pop/app/y;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/y;

    invoke-direct {v0, p0, p0}, Lcom/estrongs/android/pop/app/y;-><init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->n:Lcom/estrongs/android/pop/app/y;

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->p:Z

    if-nez v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->n:Lcom/estrongs/android/pop/app/y;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/y;->b()Z

    move-result v0

    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->p:Z

    :cond_1
    return-void
.end method

.method private K()V
    .locals 2

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v1}, Les/uo;->f()Les/to;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {v1}, Les/to;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->j(Ljava/lang/String;)V

    .line 4
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v1}, Les/uo;->a()Les/so;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 5
    iget-object v1, v1, Les/so;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->i(Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/AudioPlayerService;)Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    return-object p0
.end method

.method private a(Landroid/media/MediaPlayer;)Z
    .locals 0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {p1}, Les/uo;->o()Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    .line 5
    :cond_0
    new-instance p1, Lcom/estrongs/android/pop/app/AudioPlayerService$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$b;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    invoke-static {p1}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    const/4 p1, 0x1

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/AudioPlayerService;Landroid/media/MediaPlayer;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Landroid/media/MediaPlayer;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/AudioPlayerService;)Les/uo;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/AudioPlayerService;)I
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->I()I

    move-result p0

    return p0
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/AudioPlayerService;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    return p0
.end method


# virtual methods
.method public A()V
    .locals 5

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->u()Z

    move-result v0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->t()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v0, :cond_1

    if-nez v1, :cond_1

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->g()I

    move-result v3

    const/16 v4, 0x1388

    if-le v3, v4, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->B()V

    const/4 v2, 0x1

    :cond_1
    if-nez v2, :cond_3

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->r()I

    move-result v2

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    .line 8
    invoke-virtual {p0, v2}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(I)Z

    move-result v2

    if-nez v2, :cond_2

    return-void

    :cond_2
    if-eqz v0, :cond_3

    if-nez v1, :cond_3

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->E()Z

    :cond_3
    return-void
.end method

.method public B()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->c(I)V

    return-void
.end method

.method public C()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Les/uo;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->d:Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v0, :cond_1

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v1}, Les/uo;->b()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->f(I)V

    .line 7
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->J()V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    .line 9
    invoke-static {}, Lcom/estrongs/android/util/m;->a()V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/a;->f()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V

    :cond_2
    :goto_0
    return-void
.end method

.method public D()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->g:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/uo;->f()Les/to;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/a;->h()V

    :cond_0
    return-void
.end method

.method public E()Z
    .locals 5

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->m()Z

    move-result v0

    if-eqz v0, :cond_1

    return v1

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    const/4 v2, 0x1

    .line 4
    :try_start_0
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-nez v3, :cond_2

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(I)Z

    move-result v3

    if-nez v3, :cond_2

    return v1

    .line 6
    :cond_2
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->start()V

    .line 7
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    .line 8
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->d:Z

    .line 9
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v3, :cond_3

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    invoke-interface {v3, v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->b(I)V

    .line 11
    :cond_3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V

    .line 12
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->a:Ljava/lang/Object;

    monitor-enter v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 13
    :try_start_1
    iget-object v4, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v4, v0, v2}, Les/uo;->a(IZ)V

    .line 14
    monitor-exit v3
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 15
    :try_start_2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->J()V

    .line 16
    invoke-static {}, Lcom/estrongs/android/util/m;->a()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    return v2

    :catchall_0
    move-exception v4

    .line 17
    :try_start_3
    monitor-exit v3
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v4
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    :catch_0
    move-exception v3

    .line 18
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    .line 19
    instance-of v4, v3, Ljava/lang/IllegalStateException;

    if-nez v4, :cond_4

    instance-of v3, v3, Ljava/lang/NullPointerException;

    if-nez v3, :cond_4

    .line 20
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v3, v0, v1}, Les/uo;->a(IZ)V

    .line 21
    :cond_4
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 22
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->f(I)V

    .line 23
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v3, :cond_5

    .line 24
    invoke-interface {v3, v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->d(I)V

    goto :goto_0

    .line 25
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Landroid/media/MediaPlayer;)Z

    move-result v0

    if-nez v0, :cond_6

    return v2

    :cond_6
    :goto_0
    return v1
.end method

.method public F()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    const/4 v1, 0x0

    .line 2
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_0

    .line 4
    :try_start_0
    invoke-virtual {v1}, Landroid/media/MediaPlayer;->stop()V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 6
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    const/4 v1, 0x0

    .line 7
    iput-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    .line 8
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v1, :cond_1

    .line 9
    invoke-interface {v1, v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->g(I)V

    .line 10
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/a;->f()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V

    .line 12
    :cond_2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->H()V

    .line 13
    invoke-static {}, Lcom/estrongs/android/util/m;->b()V

    return-void
.end method

.method public G()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    .line 2
    invoke-virtual {p0}, Landroid/app/Service;->stopSelf()V

    .line 3
    invoke-static {}, Lcom/estrongs/android/util/m;->b()V

    return-void
.end method

.method public a()V
    .locals 1

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/a;->a()V

    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;)V
    .locals 0

    .line 24
    iput-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    return-void
.end method

.method public a(Les/uo;)V
    .locals 0

    .line 25
    iput-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->a(Ljava/util/List;)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_2

    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    .line 7
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->d:Z

    if-nez p1, :cond_0

    .line 8
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->H()V

    .line 9
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->pause()V

    .line 10
    invoke-static {}, Lcom/estrongs/android/util/m;->b()V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz p1, :cond_1

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    invoke-interface {p1, v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->a(I)V

    .line 13
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/notification/a;->f()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 15
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    :cond_2
    :goto_0
    return-void
.end method

.method public a(I)Z
    .locals 2

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->a(I)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 19
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    .line 20
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(I)Z

    move-result p1

    if-nez p1, :cond_1

    return v1

    .line 21
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->E()Z

    move-result p1

    return p1
.end method

.method public a(Les/to;)Z
    .locals 1

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->a(Les/to;)Z

    move-result p1

    return p1
.end method

.method public b()Les/uo;
    .locals 1

    .line 51
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    return-object v0
.end method

.method public b(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/so;",
            ">;)V"
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->b(Ljava/util/List;)V

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->g:Z

    if-nez p1, :cond_0

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a()V

    goto :goto_0

    .line 5
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V

    :goto_0
    return-void
.end method

.method public b(I)Z
    .locals 5

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->n()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 7
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    if-eqz v0, :cond_1

    return v1

    :cond_1
    const/4 v0, 0x1

    .line 8
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 9
    iget-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->a:Ljava/lang/Object;

    monitor-enter v2

    if-gez p1, :cond_2

    .line 10
    :try_start_0
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v3}, Les/uo;->l()V

    .line 11
    :cond_2
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v3, p1}, Les/uo;->b(I)Z

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {p1}, Les/uo;->d()I

    move-result p1

    if-nez p1, :cond_4

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz p1, :cond_3

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    const/4 v3, -0x1

    invoke-interface {p1, v3}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->e(I)V

    .line 15
    :cond_3
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 16
    monitor-exit v2

    return v0

    .line 17
    :cond_4
    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {p1}, Les/uo;->a()Les/so;

    move-result-object p1

    if-eqz p1, :cond_f

    .line 19
    iget-object p1, p1, Les/so;->b:Ljava/lang/String;

    if-nez p1, :cond_5

    goto/16 :goto_4

    .line 20
    :cond_5
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 21
    invoke-static {p1, v0}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_6
    const-string v2, "http://"

    .line 22
    invoke-virtual {p1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 23
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "http://"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/4 v3, 0x7

    invoke-virtual {p1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    const-string v3, "/?:@"

    invoke-static {p1, v3}, Landroid/net/Uri;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 24
    :cond_7
    :goto_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    .line 25
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->K()V

    .line 26
    :cond_8
    iget-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v2}, Les/uo;->b()I

    move-result v2

    .line 27
    :try_start_1
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v3, :cond_9

    .line 28
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    invoke-interface {v3, v2}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->e(I)V

    .line 29
    :cond_9
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    if-eqz v3, :cond_a

    .line 30
    :try_start_2
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->stop()V

    .line 31
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->release()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :catch_0
    move-exception v3

    .line 32
    :try_start_3
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    .line 33
    :cond_a
    :goto_1
    new-instance v3, Landroid/media/MediaPlayer;

    invoke-direct {v3}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    .line 34
    iget-object v4, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->j:Landroid/media/MediaPlayer$OnCompletionListener;

    invoke-virtual {v3, v4}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 35
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->k:Landroid/media/MediaPlayer$OnErrorListener;

    invoke-virtual {v3, v4}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    const-string v3, "content://"

    .line 36
    invoke-virtual {p1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b

    .line 37
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {v3, p0, p1}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;)V

    goto :goto_2

    .line 38
    :cond_b
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p1}, Landroid/media/MediaPlayer;->setDataSource(Ljava/lang/String;)V

    .line 39
    :goto_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->prepare()V

    .line 40
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 41
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->D()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    return v0

    :catch_1
    move-exception p1

    .line 42
    instance-of v3, p1, Ljava/lang/IllegalStateException;

    if-nez v3, :cond_c

    instance-of v3, p1, Ljava/lang/NullPointerException;

    if-nez v3, :cond_c

    .line 43
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v3, v2, v1}, Les/uo;->a(IZ)V

    .line 44
    :cond_c
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    .line 45
    invoke-virtual {p0, v2}, Lcom/estrongs/android/pop/app/AudioPlayerService;->f(I)V

    .line 46
    iget-object v3, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v3, :cond_d

    .line 47
    invoke-interface {v3, v2}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->d(I)V

    goto :goto_3

    .line 48
    :cond_d
    iget-object v2, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    invoke-direct {p0, v2}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Landroid/media/MediaPlayer;)Z

    move-result v2

    if-nez v2, :cond_e

    return v0

    .line 49
    :cond_e
    :goto_3
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_f
    :goto_4
    return v1

    :catchall_0
    move-exception p1

    .line 50
    :try_start_4
    monitor-exit v2
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    throw p1
.end method

.method public c()Landroid/graphics/Bitmap;
    .locals 2

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->n()Landroid/graphics/Bitmap;

    move-result-object v0

    if-nez v0, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Service;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08076c

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    :cond_0
    return-object v0
.end method

.method public c(I)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 3
    :try_start_0
    invoke-virtual {v0, p1}, Landroid/media/MediaPlayer;->seekTo(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method public d()Ljava/lang/String;
    .locals 2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->d()I

    move-result v0

    if-nez v0, :cond_1

    return-object v1

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    iget-object v0, v0, Les/so;->g:Ljava/lang/String;

    if-nez v0, :cond_2

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const v1, 0x7f110165

    invoke-virtual {v0, v1}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_2
    return-object v0

    :cond_3
    :goto_0
    return-object v1
.end method

.method public d(I)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->c(I)V

    return-void
.end method

.method public e()I
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 3
    :try_start_0
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v0

    :catch_0
    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public e(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0, p1}, Les/uo;->d(I)V

    return-void
.end method

.method public f()Les/so;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    return-object v0
.end method

.method public f(I)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    if-eq v0, p1, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v0, :cond_0

    .line 4
    invoke-interface {v0, p1}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->g(I)V

    :cond_0
    return-void

    .line 5
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    return-void
.end method

.method public g()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->f:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 2
    :try_start_0
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v0

    :catch_0
    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public h()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    return v0
.end method

.method public i()Ljava/lang/String;
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->d()I

    move-result v0

    if-nez v0, :cond_1

    return-object v1

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    iget-object v0, v0, Les/so;->e:Ljava/lang/String;

    if-eqz v0, :cond_2

    const-string v1, ""

    .line 4
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    return-object v0

    .line 5
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    iget-object v0, v0, Les/so;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_3
    :goto_0
    return-object v1
.end method

.method public j()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->e()I

    move-result v0

    return v0
.end method

.method public k()Les/to;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->f()Les/to;

    move-result-object v0

    return-object v0
.end method

.method public l()Ljava/lang/String;
    .locals 3

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->f()Les/to;

    move-result-object v0

    invoke-virtual {v0}, Les/to;->b()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v1}, Les/uo;->f()Les/to;

    move-result-object v1

    invoke-virtual {v1}, Les/to;->c()I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    return-object v0

    :catch_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public m()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->g()I

    move-result v0

    return v0
.end method

.method public n()Landroid/graphics/Bitmap;
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->d()I

    move-result v0

    if-nez v0, :cond_1

    return-object v1

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->a()Les/so;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/so;->a(Landroid/content/Context;)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public o()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->h()I

    move-result v0

    return v0
.end method

.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 0

    const/4 p1, 0x0

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(Z)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->b:Landroid/os/IBinder;

    return-object p1
.end method

.method public onCreate()V
    .locals 3

    .line 1
    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    .line 2
    :try_start_0
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "com.estrongs.action.audio.control.preview"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "com.estrongs.action.audio.control.play"

    .line 4
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "com.estrongs.action.audio.control.next"

    .line 5
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "com.estrongs.action.audio.control.close"

    .line 6
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "com.android.music.musicservicecommand"

    .line 7
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "com.android.music.musicservicecommand.pause"

    .line 8
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->i:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Landroid/app/Service;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->l:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "android.media.AUDIO_BECOMING_NOISY"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Landroid/app/Service;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 11
    invoke-static {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$MediaButtonReceiver;->a(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->m:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.ACTION_SHUTDOWN"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Landroid/app/Service;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 13
    :catch_0
    new-instance v0, Lcom/estrongs/android/ui/notification/a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/notification/a;-><init>(Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->e:Lcom/estrongs/android/ui/notification/a;

    .line 14
    new-instance v0, Les/uo;

    invoke-direct {v0}, Les/uo;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    return-void
.end method

.method public onDestroy()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->F()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->q:Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer$n0;->a()V

    .line 4
    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->i:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/app/Service;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->l:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/app/Service;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 6
    invoke-static {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService$MediaButtonReceiver;->b(Lcom/estrongs/android/pop/app/AudioPlayerService;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 7
    :try_start_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->m:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/app/Service;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 8
    :catch_0
    invoke-static {}, Les/wo;->k()V

    const/4 v0, 0x0

    .line 9
    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->b([Ljava/lang/String;)V

    .line 10
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    return-void
.end method

.method public onRebind(Landroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/app/Service;->onRebind(Landroid/content/Intent;)V

    const/4 p1, 0x0

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(Z)V

    return-void
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .locals 3

    const/4 p2, 0x0

    :try_start_0
    const-string p3, "isadd"

    .line 1
    invoke-virtual {p1, p3, p2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p3

    if-eqz p3, :cond_9

    const-string p3, "hasplaylist"

    .line 2
    invoke-virtual {p1, p3, p2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    const/4 p3, 0x0

    if-eqz p1, :cond_4

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->n0()[Ljava/lang/String;

    move-result-object p3

    .line 4
    invoke-static {p3}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->a([Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 5
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    .line 6
    :goto_0
    array-length v1, p3

    if-ge v0, v1, :cond_2

    .line 7
    aget-object v1, p3, v0

    const-string v2, ".m3u"

    invoke-virtual {v1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    if-eqz v1, :cond_0

    .line 8
    :try_start_1
    aget-object v1, p3, v0

    invoke-static {v1}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->e(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 9
    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-interface {p1, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    .line 10
    :cond_0
    :try_start_2
    aget-object v1, p3, v0

    invoke-interface {p1, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :catch_0
    :cond_1
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 11
    :cond_2
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p3

    if-nez p3, :cond_3

    const p1, 0x7f1101ec

    const/4 p3, 0x1

    .line 12
    invoke-static {p0, p1, p3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return p2

    :cond_3
    new-array p3, p2, [Ljava/lang/String;

    .line 13
    invoke-interface {p1, p3}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p1

    move-object p3, p1

    check-cast p3, [Ljava/lang/String;

    .line 14
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {p1}, Les/uo;->f()Les/to;

    move-result-object p1

    if-nez p1, :cond_5

    .line 15
    invoke-static {}, Les/wo;->j()Les/wo;

    move-result-object p1

    invoke-virtual {p1}, Les/wo;->c()Les/to;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Les/to;)Z

    .line 16
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {p1}, Les/uo;->f()Les/to;

    move-result-object p1

    .line 17
    invoke-virtual {p1}, Les/to;->e()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 18
    invoke-virtual {p1}, Les/to;->d()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    .line 19
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    const/4 v1, 0x0

    .line 20
    :goto_2
    array-length v2, p3

    if-ge v1, v2, :cond_6

    .line 21
    aget-object v2, p3, v1

    .line 22
    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 23
    :cond_6
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Ljava/util/List;)V

    if-eqz p1, :cond_7

    .line 24
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(I)Z

    .line 25
    :cond_7
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    const p3, 0x7f110166

    invoke-virtual {p1, p3}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    .line 26
    invoke-static {p0, p1, p2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_3

    .line 27
    :cond_8
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    const p3, 0x7f110167

    invoke-virtual {p1, p3}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    .line 28
    invoke-static {p0, p1, p2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    :catch_1
    :cond_9
    :goto_3
    return p2
.end method

.method public onUnbind(Landroid/content/Intent;)Z
    .locals 0

    const/4 p1, 0x1

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(Z)V

    return p1
.end method

.method public p()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->i()I

    move-result v0

    return v0
.end method

.method public q()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->j()I

    move-result v0

    return v0
.end method

.method public r()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->k()I

    move-result v0

    return v0
.end method

.method public s()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    .line 2
    invoke-virtual {v0}, Les/uo;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Les/uo;->a(I)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    return v0

    :cond_1
    :goto_0
    const/4 v0, 0x1

    return v0
.end method

.method public t()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->d:Z

    return v0
.end method

.method public u()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->c:Z

    return v0
.end method

.method public v()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->o:Z

    return v0
.end method

.method public w()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(Z)V

    return-void
.end method

.method public x()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AudioPlayerService;->h:Les/uo;

    invoke-virtual {v0}, Les/uo;->b()I

    move-result v0

    .line 2
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->b(I)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 3
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->E()Z

    move-result v0

    if-nez v0, :cond_1

    return v1

    :cond_1
    const/4 v0, 0x1

    return v0
.end method

.method public y()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->q()I

    move-result v0

    .line 3
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(I)Z

    return-void
.end method

.method public z()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->k()Les/to;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->u()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->t()Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

    .line 3
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->w()V

    goto :goto_1

    .line 4
    :cond_2
    :goto_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->t()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->C()V

    goto :goto_1

    .line 6
    :cond_3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->j()I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_4

    .line 7
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(I)Z

    goto :goto_1

    :cond_4
    const/4 v0, 0x0

    .line 8
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/AudioPlayerService;->a(I)Z

    :goto_1
    return-void
.end method
